package com.cy.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/*
* 定义用于实现远程provider服务调用的service接口
* 1.@FeignClient用于描述远程服务调用接口
* 2.name="sca-provider" 是你要远程调用的服务名
* */
@FeignClient(name="sca-provider")
public interface RemoteProviderService {
    @GetMapping("/provider/echo/{msg}")
    public String echoMsg(@PathVariable("msg") String msg);
}
